package com.jhgsys.internal.accident.service;

import com.jhgsys.internal.accident.entity.AccidentSurveyTeamUser;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-09-11 15:21:37
 */
public interface IAccidentSurveyTeamUserService extends IService<AccidentSurveyTeamUser> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param request QueryRequest
     * @param accidentSurveyTeamUser accidentSurveyTeamUser
     * @return IPage<AccidentSurveyTeamUser>
     */
    IPage<AccidentSurveyTeamUser> findAccidentSurveyTeamUserPage(QueryRequest request, AccidentSurveyTeamUser accidentSurveyTeamUser);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param accidentSurveyTeamUser accidentSurveyTeamUser
     * @return List<AccidentSurveyTeamUser>
     */
    List<AccidentSurveyTeamUser> findAccidentSurveyTeamUserList(AccidentSurveyTeamUser accidentSurveyTeamUser);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-09-11 15:21:37
    * @param id
    * @return AccidentSurveyTeamUser
    */
    AccidentSurveyTeamUser findAccidentSurveyTeamUserById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param accidentSurveyTeamUser accidentSurveyTeamUser
     */
    void createAccidentSurveyTeamUser(AccidentSurveyTeamUser accidentSurveyTeamUser);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param accidentSurveyTeamUser accidentSurveyTeamUser
     */
    void updateAccidentSurveyTeamUser(AccidentSurveyTeamUser accidentSurveyTeamUser);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param accidentSurveyTeamUser accidentSurveyTeamUser
     * @param accidentSurveyTeamUserIds accidentSurveyTeamUserIds
     */
    void deleteAccidentSurveyTeamUser(AccidentSurveyTeamUser accidentSurveyTeamUser,String accidentSurveyTeamUserIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-09-11 15:21:37
    * @param accidentSurveyTeamUserIds accidentSurveyTeamUserIds
    */
    void physicallyDeleteAccidentSurveyTeamUser(String accidentSurveyTeamUserIds);

    /**
     * 根据检查小组id删除
     * @author zhangwei
     * @date 2024-09-11 15:21:37
     * @param teamIds
     */
    void deleteByTeamIds(String teamIds);
}
